><template>
  <div>123</div>
</template>
<script>
import {
  defineComponent,
  getCurrentInstance,
  onBeforeMount,
  onBeforeUnmount,
  onMounted,
  reactive,
  toRefs,
} from "vue";
import moment from "moment";

export default defineComponent({
  name: "ComprehensiveTable",
  setup() {
    const { proxy } = getCurrentInstance();

    const state = reactive({
      editRef: null,
      tableSortRef: null,
      fold: false,
      height: proxy.$baseTableHeight(2) - 30,
      imgShow: true,
      list: [],
      treeData: [],
      imageList: [],
      listLoading: true,
      layout: "total, sizes, prev, pager, next, jumper",
      total: 0,
      selectRows: "",
      queryForm: {
        page_no: 1,
        page_size: 10,
        question_type: null,
        titke: null,
      },
      schoolData: [],
    });

    onBeforeMount(() => {});
    onBeforeUnmount(() => {});
    onMounted(() => {});

    return {
      ...toRefs(state),
    };
  },
  methods: {
    formatDates(dateStr) {
      let pattern = "YYYY-MM-DD";
      return moment(parseInt(dateStr + "000")).format(pattern);
    },
  },
});
</script>